package com.taoist_awei.blog.core;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Optional;

@Component
public interface ClassifyRepository {
    void addClassify(ClassifyEntity entity);

    void removeClassifyById(String classifyId);

    Optional<List<ClassifyNode>> getClassifyTree();

    Optional<ClassifyEntity> getClassifyById(String classifyId);

    void updateClassify(ClassifyEntity entity);
}
